package com.fuyq.router;

import java.util.List;
import java.util.Random;

public class SimpleHttpEndpointRouter implements HttpEndpointRouter {
    @Override
    public String route(List<String> urls, String uri) {
        if (uri.startsWith("/api-1")) {
            return urls.get(0);
        } else if (uri.startsWith("/api-2")) {
            return urls.get(1);
        } else {
            return "http://127.0.0.1:8888/404";
        }
    }
}
